//
//  WebViewController.m
//  项目三
//
//  Created by rimi on 15/10/9.
//  Copyright (c) 2015年 rimi. All rights reserved.
//

#import "WebViewController.h"

@interface WebViewController ()

@end

@implementation WebViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    UIWebView *webView = [[UIWebView alloc] initWithFrame:CGRectMake(0, 0, 768, 1024)];
    NSURL *url = [NSURL URLWithString:@"http://www.baidu.com"];
    // 创建请求
    NSURLRequest *request = [NSURLRequest requestWithURL:url];
    // 屏幕自适应
    webView.scalesPageToFit = YES;
    // 加载
    [webView loadRequest:request];
    [self.view addSubview:webView];
}



@end
